<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::get('hello/:name', 'index/hello');
Route::get('user/:id', 'user/userDetail');
Route::post('edituser', 'user/editUser');
Route::post('adduser', 'user/addUser');
Route::get('userstatistic', 'user/userStatistics');
Route::get('deluser/:id', 'user/delUser');
Route::get('userlist/:csc_shen', 'user/userList');//http://localhost:8000/userlist/1?page=1
Route::get('userlistbypage/:csc_shen', 'user/userListByPage');//http://localhost:8000/userlist/1?page=1
//Route::post('blog/save','blog/save')->token();  在路由中验证token

Route::get('delusertwo/:id', 'user/deleteUserTwo');
Route::get('delusert/:id', 'userexpend/deleteUserTwo');
Route::get('getexpend/:id', 'userexpend/getExpendById');
Route::get('uploadimg', 'user/uploadImg');
Route::get('verify', 'user/verify');
